package org.jeecg.config.ocr;

import org.jeecg.common.util.ocr.OcrBootDriveUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OcrBootDriveConfiguration {

    @Value("${jeecg.ocr.driver.host}")
    private String host;
    @Value("${jeecg.ocr.driver.appcode}")
    private String appcode;
    @Value("${jeecg.ocr.driver.path}")
    private String path;

    @Bean
    public void initOcrBootConfiguration(){
        OcrBootDriveUtils.setHost(host);
        OcrBootDriveUtils.setAppcode(appcode);
        OcrBootDriveUtils.setPath(path);
    }
}
